package commons.ui.listener;

import java.util.EventObject;

/**
 * Send to registered IDirtyListeners when an IForm or IFieldViewer's dirty
 * state changes.
 * 
 * @author ted stockwell
 */
public class DirtyEvent extends EventObject {
    private static final long serialVersionUID = 1L;
    public boolean dirtyState;

    /**
     * @param source
     *            the IForm or IFieldViewer whose dirty state has changed
     */
    public DirtyEvent(Object source, boolean dirtyState) {
	super(source);
	this.dirtyState = dirtyState;
    }
}
